import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zslaa
 * @version 1.0
 * @date 2020/2/12 13:45
 * FileName: Application
 * @Description: Springboot 的启动类
 */
@SpringBootApplication
//扫描 mybatis mapper 包路径
@MapperScan(basePackages = "com.news.mapper")
//扫描 所有需要的包, 包含一些自用的工具类包 所在的路径
@ComponentScan(basePackages= {"com.news"})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}